package fr.generali.accueilclient.gwt.client.application.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class StartupApplicationEvent extends GwtEvent<StartupApplicationEvent.Handler> {

    public interface Handler extends EventHandler {

        void onStartup(StartupApplicationEvent event);

    }

    public static final Type<StartupApplicationEvent.Handler> TYPE = new Type<StartupApplicationEvent.Handler>();

    @Override
    public final Type<StartupApplicationEvent.Handler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(StartupApplicationEvent.Handler handler) {
        handler.onStartup(this);
    }
}
